Function |as_ipv4
net/ip::|as_ipv4
Usage
|as_ipv4(ip)
Parameters
↳ ip: Ip (net/ip::Ip)
Return
↴ Option<Ipv4>
Extract the Ipv4 address from a generic Ip, or none if it is an IPv6 address.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
net/ip::|as_ipv4
|as_ipv4(ip)
↳ ip: Ip (net/ip::Ip)
↴ Option<Ipv4>
Extract the Ipv4 address from a generic Ip, or none if it is an IPv6 address.